<div class="rt-container">
<div class="rt-grid-9">
<div class="rt-block">
<div id="rt-mainbody">
<div class="component-content">
<span id="startOfPageId38"></span>
<div id="k2Container" class="itemView blog">
    <form name="frm" action="/tour/index/save" method="POST" enctype="multipart/form-data">
    <div class="itemHeader">
    <h2 class="itemTitle">
    Đăng ký tour mới
    </h2>
    </div>    
    <div class="tableRegisterTour">        
        <h4><font color="#00D7FE">THÔNG TIN CƠ BẢN</font></h4>
        <table>
            <tr>
                <td colspan="2" width="50%">
                    <label>MÃ TOUR : </label>
                    <input type="text" name="MATOUR"/></td>
                <td colspan="2" width="50%">
                <label>LOẠI TOUR</label>
                <select name="LOAITOUR" value="">
                  <?php foreach($this->listTourType as $item){                  
                   ?>
                    <option value="<?=$item['id']?>"><?=$item['name']?></option>
                <?php } ?>
                </select>
                </td>
            </tr>
            <tr>
                <td colspan="4" >
                    <label>TÊN TOUR : </label>
                    <input type="text" name="TEN" id="" style="width:80%" />
                    </td>
            </tr>
            <tr>
                <td colspan="4" >
                    <label>HÀNH TRÌNH : </label>
                    <input type="text" name="HANHTRINH" id="" style="width:80%" />
                    </td>
            </tr>
            <tr>
                <td colspan="2" width="50%">
                    <label>NƠI KHỞI HÀNH : </label>
                    <select name="NOIKHOIHANH" value="">
                        <option value="">Chọn</option>
                    <?php 
                        foreach($this->listCity as $city){
                    ?>
                        <option value="<?=$city['id']?>" <?=($this->params['CITY'] == $city['id']?'selected="true"':'' )?>><?=$city['name']?></option>
                    <?php } 
                    ?>
                    </select>
                </td>
                <td colspan="2" width="50%">
                    <label>NGÀY KHỞI HÀNH : </label>
                    <input type="text" name="NGAYKHOIHANH" id="ngayKhoiHanh" value="" style="width:200px"/>
                    <?php common::datePicker('ngayKhoiHanh') ?>
                </td>
            </tr>
            <tr>
                <td colspan="2" width="50%">
                    <label>SỐ NGÀY : </label>
                    <input type="text" name="SONGAY"/>
                </td>
                <td colspan="2" width="50%">
                    <label>SỐ ĐÊM : </label>
                    <input type="text" name="SODEM"/>
                </td>
            </tr>
            <tr>
                <td colspan="2" width="50%">
                    <label>SỐ CHỖ : </label>
                    <input type="text" name="SOCHO"/>
                </td>
                <td colspan="2" width="50%">
                    <label>PHƯƠNG THỨC DI CHUYỂN : </label>
                    <input type="text" name="PHUONGTHUCDICHUYEN" style="width:160px"/>
                </td>
            </tr>
            <tr>
                <td colspan="2" width="50%">
                    <label>HÌNH ẢNH : </label>
                    <input type="file" name="HINHANH" style="width:200px"/>
                </td>
                <td colspan="2" width="50%">
                    <label>KÍCH HOẠT : </label>
                    <input type="checkbox" name="KICHHOAT" value="1" title="Nhấn space để chọn" />
                </td>
            </tr>
        </table>
    </div>
    <div class="tableRegisterTour">
       <h4><font color="#00D7FE">THÔNG TIN GIÁ </font></h4>
        <table>
            <tr>
                <td colspan="2" width="50%">
                    <label>GIÁ NGƯỜI LỚN : </label>
                    <input type="text" name="GIANGUOILON" style="width:200px"/>
                </td>
                <td colspan="2" width="50%">
                    <label>GIÁ TRẺ EM</label>
                    <input type="text" name="GIATREEM"/>
                </td>
            </tr>
        </table>
    </div>    
    <div class="tableRegisterTour">
        <a href="javascript:submitForm()" title="Nhấn vào đây để lưu" style="width:200px"><h4>ĐĂNG KÝ TOUR<h4></a>
    </div>
</form>
<script>
</script>
</div>
</div>
</div>
</div>
</div>
<div class="rt-grid-3 ">
    <?php include_once APPLICATION_PATH.'/templates/Default/temp1/include/user_right_menu.phtml' ?>
</div>
</div>
<div class="clear"></div>
</div>
<script>
    function submitForm(){
        var ngaykhoihanh = document.frm.NGAYKHOIHANH.value;
        var gianguoilon = document.frm.GIANGUOILON.value;
        var giatreem = document.frm.GIATREEM.value;
        var matour = document.frm.MATOUR.value;
        var ten = document.frm.TEN.value;
        
        if(ngaykhoihanh == "" || gianguoilon == "" || giatreem == "" || matour == "" ||ten == ""){
            alert('Thông tin chưa đầy đủ');
        }else{
            document.frm.submit();
        }
            
    }
</script>